package com.zmn.oms.persistence.interfaces.comment;

import com.zmn.oms.model.entity.comment.OrderCommentDetail;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/** 
 * 类描述：订单评价详情
 * @author  lujia
 * @date   2018-12-12 10:37:02
 */
public interface OrderCommentDetailDao {

    /**
     * 根据订单id集合查询评价详情信息
     * @param orderIdList 订单id集合
     * @return 订单评价详情
     */
    List<OrderCommentDetail> listOrderCommentDetailByOrderIdList(@Param("orderIdList") List<Long> orderIdList);

    /**
     * 通过评价Id查询订单评价详情记录
     * @param commentId
     * @return
     */
    List<OrderCommentDetail> listOrderCommentDetailByCommentId(Long commentId);

    /**
     * 保存订单评价详情
     * @param detailList
     * @return
     */
    int insertOrderCommentDetailList(@Param("detailList") List<OrderCommentDetail> detailList);

    /**
     * 删除订单评价详情
     * @param commentId
     * @return
     */
    int deleteOrderCommentDetailByCommentId(Long commentId);
}